//
//  EmailExtensionIOS.h
//  EmailExtensionIOS
//
//  Based on the example by Piotr Kościerzyński, http://flashsimulations.com/2011/11/30/ios-native-extension-for-adobe-air-in-app-mail-composer/

#import <Foundation/Foundation.h>
#import "FlashRuntimeExtensions.h"


@interface EmailExtensionIOS : NSObject


FREObject ActionScriptIsEmailConfigured(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[]);
FREObject ActionScriptSendEmail(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[]);

void EmailExtensionContextInitializer(void* extData, 
                                      const uint8_t* ctxType, 
                                      FREContext ctx, 
                                      uint32_t* numFunctionsToTest, 
                                      const FRENamedFunction** functionsToSet);

void EmailExtensionContextFinalizer(FREContext ctx);

void EmailExtensionInitializer(void** extDataToSet, 
                               FREContextInitializer* ctxInitializerToSet, 
                               FREContextFinalizer* ctxFinalizerToSet);

void EmailExtensionFinalizer(void* extData);

@end
